package com.wangyb.wework.service.contact;

import com.ruoyi.common.core.page.IServicePlus;
import com.ruoyi.common.core.page.TableDataInfo;
import com.wangyb.wework.bo.WwTagAddBo;
import com.wangyb.wework.bo.WwTagEditBo;
import com.wangyb.wework.bo.WwTagQueryBo;
import com.wangyb.wework.entity.contact.WwTag;
import com.wangyb.wework.entity.contact.WwTagGroup;
import com.wangyb.wework.vo.WwTagVo;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 客户标签Service接口
 *
 * @Author: wangyb
 * @Date: 2021/6/30 10:46 下午
 */
public interface IWwTagService extends IServicePlus<WwTag> {
	void syncContactTag(Long corpId);

	Map<String, Long> getContactTagByCorId(Long corpId);

	List<WwTagGroup> getTagWithUsedNum(Long corpId);

	TableDataInfo<WwTagVo> queryPageList(WwTagQueryBo bo);
	List<WwTagVo> queryList(WwTagQueryBo bo);

	WwTagVo queryById(Long id);

	Boolean insertByAddBo(WwTagAddBo bo);

	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

	Boolean updateByEditBo(WwTagEditBo bo);
}
